<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="_detect" />
<title>水泥,煤炭灰</title>
<script>

$(document).ready(function() {
	
	$("#reportStartdate").addClass("Wate").bind("click", function() {
		WdatePicker({
			skin : 'whyGreen',
			minDate : '1900-10-01',
			maxDate : '%y-%M-%d',
			dateFmt : 'yyyy-MM-dd'
		});
	});
});

function viewTria(id){
	$.window.prepare({
		   dock: 'left'       // change the dock direction: 'left', 'right', 'top', 'bottom'
		});
	sampleWnd = $.window({
		title: "混凝土试件",
		showFooter: false,
		maximizable:true,
		bookmarkable:false,
		showModal: true,
		resizable:false,
		width:720,
		height:400,
		showRoundCorner: true,
		createRandomOffset: {x:-1, y:-1},
		modalOpacity: 0.5,
		minimizable:false,
		url: appConfig.contPath+"/receive/wt03/trialwt03!view.action?decorator=open&confirm=true&id="+id
	});
	sampleWnd.maximize();
}

function close(){
	 $.window.closeAll(); 
}

function add(){
	location.href = '${ctx}/receive/wt03/trialwt03!input.action';
}

	</script>
</head>
<body>
<div id="heading" class="detect"><h6>水泥,煤炭灰</h6></div>
<form action="${ctx}/receive/trialwt05.action" method="get" id="mainForm"
	class='yform'>
<div id="filter">
<ul>
<li>委托编号:<input type="text" value="${param['filter_LIKES_entrustNum']}" name="filter_LIKES_entrustNum">
		</li>
<li>工程名称:
		<input type="text"  value="${param['filter_LIKES_relationship.proj.projName']}"
							name="filter_LIKES_relationship.proj.projName" >
							</li>
	<li>送检时间:<input type="text" id="reportStartdate"
		name="filter_EQD_checkdate" value="${param['filter_EQD_checkdate']}" />
		</li>
		<li>检验类别:<pt:code category="5001" hasEmpty="true" default="${param['filter_EQS_checktype']}" name="filter_EQS_checktype"></pt:code>
		</li>
</ul>
<div class="type-button">
<input type="button" onclick="search();"
	class="search" value="查询" /></div>
</div>
<div id="content">
<table>
	<tr>
		<th>委托编号</th>
		<th>委托单位</th>
		<th>工程名称</th>
		<th>委托送样人</th>
		<th>检验类别</th>
		<th>送检时间</th>
		<th>操作</th>
		<c:forEach items="${page.result}" var="entrust">
			<tr>
				<td>${entrust.entrustNum}</td>
				<td>${entrust.relationship.entrustorgid}</td>
				<td> <pt:text limit="12">${entrust.relationship.proj.projName}</pt:text> </td>
				<td>${entrust.operations}</td>
				<td><pt:code category="5001" code="${entrust.checktype}"></pt:code></td>
				<td><fmt:formatDate value="${entrust.checkdate}" pattern="yyyy-MM-dd"/></td>
				<td>
					<a href="${ctx }/receive/wt03/trialwt03!input.action?id=${entrust.id}">修改</a>			
					<a href="javascript:viewTria('${entrust.id}');">查看</a>				
				</td>
			</tr>
		</c:forEach>
</table>
</div>
<jsp:include page="/common/page.jsp" flush="true" />
<div class="type-button">
<input class="submit" type="button" class="submit" onclick="add();"
				value="新增" />
</div>
</form>
</body>
